package com.ag.admin.web.tags;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ComponentTagSupport;

import com.opensymphony.xwork2.util.ValueStack;

public class HelloTag extends ComponentTagSupport {
	private String value;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public Component getBean(ValueStack arg0, HttpServletRequest arg1,
			HttpServletResponse arg2) {
		return new Hello(arg0, arg1);
	}

	@Override
	protected void populateParams() {
		super.populateParams();

		Hello tag = (Hello) component;
		tag.setValue(value);
	}

}
